OPC Studio User's Guide and Reference
FromDAVtq Method (DAVtqPayload<TValue>)



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.DataAccess.ComplexEventProcessing Namespace > DAVtqPayload<TValue> Class : FromDAVtq Method
Data value, timestamp and quality.

The value of this parameter can be null (Nothing in Visual Basic).

Converts OPC-DA data value, timestamp and quality to an event payload.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Shared Function FromDAVtq( _
   ByVal vtq As DAVtq(Of TValue) _
) As DAVtqPayload(Of TValue)
'Usage
 
Dim vtq As DAVtq(Of TValue)
Dim value As DAVtqPayload(Of TValue)
 
value = DAVtqPayload(Of TValue).FromDAVtq(vtq)
[CanBeNull()]
public static DAVtqPayload<TValue> FromDAVtq( 
   DAVtq<TValue> vtq
)
[CanBeNull()]
public:
static DAVtqPayload<TValue^>^ FromDAVtq( 
   DAVtq<TValue^>^ vtq
) 

Parameters

vtq
Data value, timestamp and quality.

The value of this parameter can be null (Nothing in Visual Basic).

Return Value

Returns an event payload containing the OPC-DA data value, timestamp and quality.

This method can return null (Nothing in Visual Basic).

Remarks

In languages that support implicit conversions (such as C# or VB.NET), in many cases you do not have call this method explicitly. When indicated, a call to an available equivalent implicit conversion operator will be created by the compiler automatically.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also